<html>
   <head>
       <title>Schools</title>
       <link href="schools.js" type="application/json" rel="exhibit/data" />
       <script src="http://static.simile.mit.edu/exhibit/api-2.0/exhibit-api.js"
           type="text/javascript"></script>
       <script src="http://static.simile.mit.edu/exhibit/extensions-2.0/map/map-extension.js?gmapkey=ABQIAAAAcC5IelO20r0uCbf4P_D8RBTsVzB6QLDoEyFiv6oQagMcjDZccRTamtAe-DGxURkgnlYHXfjTP37ppg"
           type="text/javascript"></script>
   </head> 
   <body>
   
   <button onclick="getLatLng();">Get Lat/Lng</button><br/>
   <textarea id="results" rows="20" style="width: 100%;"></textarea>
   <script type="text/javascript">
       function getLatLng() {
           var database = exhibit.getDatabase();
           Exhibit.MapView.lookupLatLng(
               database.getSubjects("School", "type"),
               ".address",
               "addressLatLng",
               document.getElementById("results"),
               database,
               4
           );
       }
   </script>
   
   </body>
   </html>

